package books.ThinkingInJava.src.Chapter11;


import books.ThinkingInJava.src.Tools.Output;

import java.util.PriorityQueue;
import java.util.Queue;

public class Q29 {
    public Q29() {
        Queue<test> qu = new PriorityQueue<>();
//        Collections.shuffle(qu);
        try {
            for (int i = 0; i < 5; i++) {
                qu.add(new test());
            }
        } catch (Exception e) {
            Output.println("error");
            e.printStackTrace();
        }
        Output.println(qu.size());
    }

    public static void main(String[] args) {
        Q29 q = new Q29();
    }

    private class test extends Object {
    }
}
